// import React from "react";
import React from "./react";
import ReactDom from "./react/react-dom";
class Dialog extends React.Component{
  constructor(props){
    super(props)
    let node = document.createElement('div')
    node.className = 'dialog'
    this.node = node
    document.body.appendChild(node)
  }
  render(){
    return ReactDom.createPortal(<div>模态框</div>,this.node)
  }
}

   class App extends React.Component{
      render(){
        return (
          <div>
            app
            <Dialog />
         </div>
        );
      }
  }
  
export default App